﻿<Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="clr-namespace:Collegiate.Controls;assembly=CollegiateAssignmentList"
    Title="MainWindow" Height="350" Width="525">
        <DockPanel LastChildFill="True" HorizontalAlignment="Stretch" Name="Body">
            <Menu IsMainMenu="True" DockPanel.Dock="Top">
                <MenuItem Header="_File">
                    <MenuItem Header="New Professor" IsEnabled="True" Click="newProfessor"/>
                    <MenuItem Header="New Course" IsEnabled="True" Click="newCourse"/>
                    <MenuItem Header="_New Assignment" IsEnabled="True" Click="newAssignment" />
                    <Separator />
                    <MenuItem Header="Save" IsEnabled="True" Click="save_click" />
                    <Separator />
                    <MenuItem Header="Create Backup" IsEnabled="False" />
                    <MenuItem Header="Restore From Backup" IsEnabled="False" />
                </MenuItem>
                <MenuItem Header="_Edit">
                    <MenuItem Header="Edit Professor" Name="ProfessorEditMenu" IsEnabled="True" />
                    <MenuItem Header="Edit Course" Name="CourseEditMenu" IsEnabled="True" />
                    <MenuItem Header="Edit Assignment" Name="AssignmentEditMenu" IsEnabled="True" />
                    <Separator />
                    <MenuItem Header="Delete Professor" Name="ProfessorDeleteMenu" IsEnabled="True" />
                    <MenuItem Header="Delete Course" Name="CourseDeleteMenu" IsEnabled="True" />
                    <MenuItem Header="Delete Assignment" Name="AssignmentDeleteMenu" IsEnabled="True" />
                    <Separator />
                    <MenuItem Header="Undo" IsEnabled="False" />
                    <MenuItem Header="Redo" IsEnabled="False" />
                </MenuItem>
                <MenuItem Header="Vie_w" Name="menuView">
                    <MenuItem Header="All Assignments" IsEnabled="False" IsCheckable="True" IsChecked="True" />
                    <MenuItem Header="Overdue" IsEnabled="False" IsCheckable="True" IsChecked="False" />
                    <MenuItem Header="Due Today" IsEnabled="False" IsCheckable="True" IsChecked="False" />
                    <MenuItem Header="Due Tomorrow" IsEnabled="False" IsCheckable="True" IsChecked="False" />
                    <MenuItem Header="Upcoming" IsEnabled="False" IsCheckable="True" IsChecked="False" />
                    <Separator />
                    <MenuItem Header="All Courses" IsEnabled="False" IsCheckable="True" IsChecked="True" />
                    <Menu Name="menuClasses" />
                    <Separator />
                    <MenuItem Header="All" IsEnabled="False" IsCheckable="True" IsChecked="True"/>
                    <MenuItem Header="Starred" IsEnabled="False" IsCheckable="True" IsChecked="False" />
                    <MenuItem Header="Unstarred" IsEnabled="False" IsCheckable="True" IsChecked="False" />
                </MenuItem>
                <MenuItem Header="_Help">
                    <MenuItem Header="View Help" IsEnabled="True" Click="openHelp"/>
                    <Separator />
                    <MenuItem Header="Collegiate Home Page" IsEnabled="True"  Click="openProjectPage"/>
                    <MenuItem Header="Collegiate Project Page" IsEnabled="True" Click="openProjectPage"/>
                    <MenuItem Header="Documentation" IsEnabled="False" />
                    <Separator />
                    <MenuItem Header="Donate" IsEnabled="False" />
                    <MenuItem Header="About Collegiate" IsEnabled="False" />
                </MenuItem>
            </Menu>
            <StatusBar Height="23" DockPanel.Dock="Bottom" />
            
            <ScrollViewer Name="OptionsScrollViewer" VerticalScrollBarVisibility="Auto">
                <Grid Width="125">
                    <Border BorderBrush="Gray" BorderThickness="1">
                        <Grid HorizontalAlignment="Center"> <!-- Slightly unnecessary grid to center everything -->
                            <StackPanel Name="OptionsStack" Orientation="Vertical">
                                <Separator Height="10" />
                                <StackPanel Name="OptionsDueStack" Height="Auto">
                                    <RadioButton Name="rdoAllAssignments" GroupName="OptionsDueStack" Content="All Assignments" Margin="2" IsChecked="True" Checked="assignmentVisibilityChanged" />
                                <RadioButton Name="rdoOverdueAssignments" GroupName="OptionsDueStack" Content="Overdue" Margin="2" IsChecked="False" Checked="assignmentVisibilityChanged" />
                                <RadioButton Name="rdoDueToday" GroupName="OptionsDueStack" Content="Due Today" Margin="2" IsChecked="False" Checked="assignmentVisibilityChanged" />
                                <RadioButton Name="rdoDueTomorrow" GroupName="OptionsDueStack" Content="Due Tomorrow" Margin="2" IsChecked="False" Checked="assignmentVisibilityChanged" />
                                <RadioButton Name="rdoUpcoming" GroupName="OptionsDueStack" Content="Upcoming" Margin="2" IsChecked="False" Checked="assignmentVisibilityChanged" />
                                </StackPanel>
                                <Separator Height="10" BorderBrush="Black"/>
                                <StackPanel Name="OptionsCoursesStack" Orientation="Vertical">
                                    <RadioButton Name="rdoAllCourses" Content="All Courses" GroupName="OptionsCoursesStack" IsChecked="True" Click="courseVisibilityChanged"/>
                                    <!-- Add all courses as children nodes to this StackPanel later via code -->
                                </StackPanel>
                                <Separator Height="10" BorderBrush="Black"/>
                                <StackPanel Name="OptionsStarredStack" Orientation="Vertical">
                                    <RadioButton Content="All" Name="rdoAllStarred" GroupName="OptionsStarredStack" Margin="2" IsChecked="True"/>
                                    <RadioButton Content="Starred" Name="rdoStarred" GroupName="OptionsStarredStack" Margin="2" IsChecked="False"/>
                                    <RadioButton Content="Unstarred" Name="rdoUnstarred" GroupName="OptionsStarredStack" Margin="2" IsChecked="False"/>
                                </StackPanel>
                                <Separator Height="10" BorderBrush="Black"/>
                            </StackPanel>
                        </Grid> <!-- End of slightly unnecessary grid -->
                    </Border>
                </Grid>
            </ScrollViewer>
        </DockPanel>
</Window>
